﻿@using thousandClear.Areas.Admin.Models;
@model AngentModel
@{
    ViewBag.Title = "修改地区";
    Layout = "~/Areas/Admin/Views/Shared/_Admin.cshtml";
}

<div id="app">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">后台管理</strong> / <small>@ViewBag.Title</small></div>
    </div>
    <div class="am-tabs am-margin" data-am-tabs>
        <div class="am-tabs-bd">
            <form action="" onsubmit="return check()" method="post" class="am-form" id="form">
                <fieldset>
                    <div class="am-form-group">
                        <label for="AgentDesc">地区名:</label>
                        <input type="text" id="AgentDesc" placeholder="输入地区名称(必填)" required v-model="AgentDesc" />
                    </div>
                    <input type="hidden" name="data" v-bind:value="data" />
                    <button type="submit" class="am-btn am-btn-secondary">提交</button>
                </fieldset>
            </form>
        </div>
    </div>
</div>
@section Scripts{
    <script src="~/Statics/Venders/uedit-1.4.3.1/ueditor.config.js"></script>
    <script src="~/Statics/Venders/uedit-1.4.3.1/ueditor.all.min.js"></script>
    <script>
        var model = new Vue({
            el: '#app',
            data: {
                AgentDesc:'@Model.datDesc',
                id:@Model.DATID,
            },
            computed: {
                data: function () {
                    return JSON.stringify(this._data);
                }
            }

        })
        
        $('.admin-sidebar-Agent').addClass('current');
    </script>
}
